<?php

namespace app\config\models;

class Config extends \yii\db\ActiveRecord {

    public static function tableName() {
        return '{{%config}}';
    }


    public function rules() {
        return [
            [['value'], 'string'],
            [['name'], 'string', 'max' => 128],
            [['name'], 'unique']
        ];
    }

    public function attributeLabels() {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'value' => 'Value',
        ];
    }
}
